package com.ctrip.demo.design.builder;

public class PhoneBuilder extends AbstractBuilder {

    public PhoneBuilder() {
        this.phone = new Phone();
    }

    @Override
    AbstractBuilder customerCpu(String cpu) {
        this.phone.cpu = cpu;
        return this;
    }

    @Override
    AbstractBuilder customerMem(String mem) {
        this.phone.mem = mem;
        return this;
    }

    @Override
    AbstractBuilder customerDisk(String disk) {
        this.phone.disk = disk;
        return this;
    }

    @Override
    AbstractBuilder customerCam(String cam) {
        this.phone.cam = cam;
        return this;
    }
}
